// app/models/user.js
// load the things we need
var mongoose = require('mongoose');

// define the schema for our user model
var commentuser = new mongoose.Schema({

	videoOwner:String,
	awemeID :String,
	commentTime : Date,
	nickname : String,
	// province : String,
	// city : String,
	uniqueID :String,
	shortID :String,
	uid:String,
	// followerCount:Number,
	gender:Number,
	cellphone : String

	});											

// methods ======================
commentuser.index({awemeid: 1});

commentuser.index({videoOwner: 1});
commentuser.index({uid: 1});
commentuser.index({commentTime: -1});

commentuser.index({gender: 1});

// create the model for users and expose it to our app
module.exports = mongoose.model('CommentUser', commentuser);
